/**
 * 根模块
 */

 let initState = {
     iscollapse:false,   // 是否收起侧边栏
     userinfo:{}
 }

 export default function app(state=initState,action){
     switch (action.type) {
         case "APP_COLLAPSE":  // 切换侧边栏
            state.iscollapse = !state.iscollapse;
            return {...state};
         default:   
            return state;
     }
 }